//logs.js
const util = require('../../utils/util.js')
const { $Toast } = require('../../dist/base/index');
var api = require('../../config/api.js');
const app = getApp();

Page({
  data: {
    loading:false,
    list:[],
    /*表单参数*/
  },
  onLoad: function () {
    console.log('onLoad')
  },

  onShow: function () {
    let self = this;
    util.request(api.GetSolicitDmtList, {
    }, 'POST').then(res => {
      if (res.success) {
        self.setData({
          list: res.data
        })
      }
    }).catch(err => {

    });
  },

  clickItem(e) {
    let id = e.currentTarget.dataset.id;
    wx.navigateTo({
      url: `../../pages/my-solicitDmtDetail/my-solicitDmtDetail?id=${id}`,
    })
  }

})
